home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet multimedia / Linux LiveCD / GeeXboX 1.0 EN / geexbox-1.0-en.i386.iso / GEEXBOX / etc / init.d / 11_lcddisplay < prev    next >
Text File  |  2006-06-21  |  455b  |  22 lines

  1. #!/bin/sh
  2. #
  3. # start lcd display
  4. #
  5. # runlevels: geexbox, debug
  6.  
  7. # get options
  8. test -f /etc/lcddisplay || exit 1
  9. . /etc/lcddisplay
  10.  
  11. CONFIG=/etc/lcd4linux.conf
  12.  
  13. if test "$LCD_ENABLED" = "yes" -a -f $CONFIG; then
  14.   echo "### Starting LCD Display ###"
  15.   # create the fifo for mplayer
  16.   mkfifo /tmp/mp_streaminfo
  17.   sed -i -e "s/LCD_WIDTH/$LCD_WIDTH/g" -e "s/LCD_HEIGHT/$LCD_HEIGHT/g" $CONFIG
  18.   /usr/bin/lcd4linux -c "Display='$LCD_MODEL'" -f $CONFIG
  19. fi
  20.  
  21. exit 0
  22.